<style type="text/css">
    .remark{padding-top:4px;word-break:normal;width:auto;display:block; white-space:pre-wrap;word-wrap:break-word;overflow: hidden}
</style>
<script type="text/javascript">
    //初始化页面
    var keyId = (getUrlParam("keyId", url));
    fy_api.load_template({controller: $("#saveForm").attr("templateParam", "keyId=" + keyId), initValue: true,loading: true,loaded: init});

    function init(){
        //设置状态
        var tipIndexFlag = $("#tipIndexFlag").text();
        if(tipIndexFlag == "0"){
            $("#tipIndexFlag").text("否");
        }else{
            $("#tipIndexFlag").text("是");
        }

    }
</script>
<form id="saveForm" templateUrl="news/get.do">
    <table style="margin: 10px auto;border: 1px solid darkgrey;padding: 10px">
        <tr>
            <td>
                <div class="div-item">
                    <div class="div-label">标题：</div>
                    <span class="div-item-info">${title}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-item">
                    <div class="div-label">公司名称：</div>
                    <span class="div-item-info">${companyName}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-item">
                    <div class="div-label">是否在主页使用：</div>
                    <span class="div-item-info" id="tipIndexFlag">${tipIndexFlag}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div >
                    <div class="div-label">內容：</div>
                    <textarea rows="15" readonly="readonly" cols="50" name="content">${context}</textarea>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-label">外网URL：</div>
            </td>
            <td colspan="3">
                <div class="div-item" style="width: 90%"><a href="${externalUrl}" target="_blank">${externalUrl}</a></div>
            </td>
        </tr>
        <tr>
            <td>
                <div >
                    <div class="div-label">附件：</div>
                    <span class="div-item-info" style="height:90%;">
                        <img src='${annexUrl}' height='70px' width='50px' style='margin-right:20px;' />
                        <a target='_blank' href='${annexUrl}'><span  >${annex}</span></a>
                    </span>
                </div>
            </td>
        </tr>
    </table>
</form>
<div class="form-buttons">
    <a id="btnBack" class="easyui-linkbutton c2" href="#" iconCls="icon-undo" onClick="parent.j_closeWin();">返回</a>
</div>